//
//  DeadlineCollectionViewCell.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2022/5/16.
//

import UIKit

class DeadlineCollectionViewCell: UICollectionViewCell {
    var bgView: UIView!
    var titleLab: UILabel!
    
    override init(frame: CGRect){
        super.init(frame: frame)
        
        let width = (kScreenWidth - 36 - 5*4)/4
        
        self.bgView = UIView(frame: CGRect(x: 0, y: 0, width: width, height: 38))
        self.bgView.layer.cornerRadius = 4
        self.bgView.layer.masksToBounds = true
        self.bgView.backgroundColor = Theme.mainColor
        self.contentView.addSubview(self.bgView)
        
        
        self.titleLab = UILabel(frame: CGRect(x: 0, y: 0, width: self.bgView.width, height: 38))
        self.titleLab.font = UIFont.init(name: Theme.PingFangSCMedium, size: 14)
        self.titleLab.textColor = Theme.titleLabColor
        self.titleLab.textAlignment = .center
        self.bgView.addSubview(self.titleLab)

        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
